//
//  LCBaseVC.h
//  stone-story
//
//  Created by dodo liu on 12-9-25.
//  Copyright (c) 2012年 liu dodo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "TouchXML.h"
#import "ASIHTTPRequest.h"
#import "ASIFormDataRequest.h"
#import "AppDelegate.h"
#import "CommonConfig.h"

@interface LCBaseVC : UIViewController
<MBProgressHUDDelegate,UIAlertViewDelegate>
{
    MBProgressHUD *HUD;//风火轮
    NSMutableArray *resultArray;//存放结果的数组
    NSString *rootNodeName;//要解析出的无素节点
    UIAlertView *lcalertview;//对话框
    BOOL haveConnect;//标识远程数据是否连接成功
    AppDelegate *APPDELE;//=[[UIApplication sharedApplication]delegate];
    UILabel *navTitleLabel;//导航条加个文本，为了显示其他color的文本
}

//@property (nonatomic,strong) NSOperationQueue *_queue;

@property(retain,nonatomic)MBProgressHUD *HUD;
@property(retain,nonatomic)NSMutableArray *resultArray;
@property(retain,nonatomic)NSString *rootNodeName;
@property(retain,nonatomic)UIAlertView *lcalertview;
@property BOOL haveConnect;
@property(retain,nonatomic)AppDelegate *APPDELE;
@property(retain,nonatomic)UILabel *navTitleLabel;



//
- (void)HUD_Create:(UIView*)view;
- (void)HUD_Show;
- (void)HUD_Hide;

- (void)request_Send:(NSString*)urlStr withPostArg:(NSMutableArray*)argArray;
- (void)alertShowWithTitle:(NSString*)title msg:(NSString*)msg cancelBtnTitle:(NSString*)cancelTitle;
- (void)setTabBarItem_BadgeValue:(int)itemIndex value:(int)value;//右上角的小数字


//动画
-(void)moveTo:(UIView*)view x:(float)x y:(float)y;
-(void)moveDistance:(UIView*)view x:(float)x y:(float)y;
//

@end

